package com.sample.info;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class InputInfo implements Serializable {

	private static final long serialVersionUID = 1l;

	private int num = 0;

	private String name = null;

	private Date date = null;

	private Map<String, String> hash = new HashMap<String, String>();

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Map<String, String> getHash() {
		return hash;
	}

	public void setHash(Map<String, String> hash) {
		this.hash = hash;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer();

		sb.append("★InputData\n");
		sb.append("Num:" + getNum() + "\n");
		sb.append("Name:" + getName() + "\n");
		sb.append("Date:" + getDate().toString() + "\n");
		sb.append("Hash:" + getHash().toString() + "\n");

		return sb.toString();
	}
}
